home *** CD-ROM | disk | FTP | other *** search
- diff -cr make-3.68.orig/job.c make-3.68/job.c
- *** make-3.68.orig/job.c Thu Sep 9 11:21:08 1993
- --- make-3.68/job.c Mon Sep 6 16:01:48 1993
- ***************
- *** 22,29 ****
- --- 22,37 ----
- #include "file.h"
- #include "variable.h"
-
- + #ifdef atarist /* Modification for Atari ST */
- + #include <support.h> /* For findfile() */
- + #endif
- +
- + #ifdef atarist /* Modifcation for Atari ST */
- + static char default_path[] = ":/bin:/usr/bin:/gnu/bin";
- + #else
- /* Default path to search for executables. */
- static char default_path[] = ":/bin:/usr/bin";
- + #endif
-
- /* Default shell to use. */
- char default_shell[] = "/bin/sh";
- ***************
- *** 953,962 ****
- --- 961,998 ----
- If successful, store the full pathname in PROGRAM and return 1.
- If not sucessful, return zero. */
-
- + #ifdef atarist /* Atari ST modification */
- + static char *_extensions[] = { "ttp", "prg", "tos", "app", NULL };
- + #endif
- +
- static int
- search_path (file, path, program)
- char *file, *path, *program;
- {
- + #ifdef atarist /* Modification for Atari ST */
- + char *p;
- +
- + if (path == 0 || path[0] == '\0')
- + path = default_path;
- +
- + if ((index (file, '/') != 0) || (index (file, '\\') != 0))
- + {
- + strcpy (program, file);
- + return 1;
- + }
- + else
- + {
- + p = (char *) findfile (file, path, _extensions);
- + if (p == NULL)
- + return 0;
- + else
- + {
- + strcpy (program, p);
- + return 1;
- + }
- + }
- +
- + #else /* Not Atari ST */
- if (path == 0 || path[0] == '\0')
- path = default_path;
-
- ***************
- *** 1040,1045 ****
- --- 1076,1082 ----
- }
-
- return 0;
- + #endif /* Atari ST modification */
- }
-
- /* Replace the current process with one running the command in ARGV,
- diff -cr make-3.68.orig/main.c make-3.68/main.c
- *** make-3.68.orig/main.c Thu Sep 9 11:21:10 1993
- --- make-3.68/main.c Mon Sep 6 16:01:56 1993
- ***************
- *** 200,206 ****
- --- 200,210 ----
-
- /* The table of command switches. */
-
- + #ifdef atarist
- + static struct command_switch switches[] =
- + #else
- static const struct command_switch switches[] =
- + #endif
- {
- { 'b', ignore, 0, 0, 0, 0, 0, 0,
- 0, 0,
- diff -cr make-3.68.orig/make.h make-3.68/make.h
- *** make-3.68.orig/make.h Thu Sep 9 11:21:28 1993
- --- make-3.68/make.h Mon Sep 6 16:02:00 1993
- ***************
- *** 277,283 ****
- #include <vfork.h>
- #endif
-
- ! #if !defined (__GNU_LIBRARY__) && !defined (POSIX)
-
- #ifdef HAVE_SIGSETMASK
- extern int sigsetmask ();
- --- 277,285 ----
- #include <vfork.h>
- #endif
-
- ! /* Mintlib doesn't define POSIX yet...,
- ! but GCC complains about open() vs. open(arg1,...) */
- ! #if !defined (__GNU_LIBRARY__) && !defined (POSIX) && !defined (atarist)
-
- #ifdef HAVE_SIGSETMASK
- extern int sigsetmask ();
- diff -cr make-3.68.orig/read.c make-3.68/read.c
- *** make-3.68.orig/read.c Thu Sep 9 11:21:12 1993
- --- make-3.68/read.c Mon Sep 6 16:02:08 1993
- ***************
- *** 272,278 ****
- filename = expanded;
- }
-
- ! infile = fopen (filename, "r");
- /* Save the error code so we print the right message later. */
- makefile_errno = errno;
-
- --- 272,283 ----
- filename = expanded;
- }
-
- ! #ifdef atarist /* Modification for Atari ST */
- ! infile = fopen (filename, "rt");
- ! #else
- ! infile = fopen(filename, "r");
- ! #endif
- !
- /* Save the error code so we print the right message later. */
- makefile_errno = errno;
-
- ***************
- *** 286,292 ****
- for (i = 0; include_directories[i] != 0; ++i)
- {
- char *name = concat (include_directories[i], "/", filename);
- ! infile = fopen (name, "r");
- if (infile == 0)
- free (name);
- else
- --- 291,301 ----
- for (i = 0; include_directories[i] != 0; ++i)
- {
- char *name = concat (include_directories[i], "/", filename);
- ! #ifdef atarist /* Modification for Atari ST */
- ! infile = fopen (filename, "rt");
- ! #else
- ! infile = fopen(filename, "r");
- ! #endif
- if (infile == 0)
- free (name);
- else
-
-